package com.raja.servingStation.service.impl;

import com.raja.servingStation.dao.TestRepairDao;
import com.raja.servingStation.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by Administrator on 2017/9/26/026.
 */
@Service
public class TestServiceImpl implements TestService {

    @Autowired
    TestRepairDao testRepairDao;


    /**
     * 分布式事物控制
     * @throws Exception
     */
    @Override
    public void save() throws Exception {
        testRepairDao.update();
    }

    @Override
    public void select() throws Exception {
        testRepairDao.test();
    }


}
